import java.awt.image.BufferedImage;
import java.io.File;

import javax.imageio.ImageIO;

public class Test {
    public static void main(String[] a)
            throws Exception {
        File file = new File("/host/pics/IMG_9152.CR2");
        BufferedImage image = ImageIO.read(file);
        ImageIO.write(image, "jpg", new File("/host/pics/IMG_9152_cr.jpg"));
    }
}